import request from '@/utils/request';
// list
export const chengjitianjiaList = (params) => {
    return request({
        url: '/chengjitianjia/page',
        method: 'post',
        data: params,
    })
};
export const chengjitianjiaDetail = (id) => {
    return request({
        url: '/chengjitianjia/'+id,
        method: 'get',
    })
};
// add
export const chengjitianjiaSave = (params) => {
    return request({
        url: '/chengjitianjia',
        method: 'post',
        data: params,
    })
};
// updt
export const chengjitianjiaEdit = (params) => {
    return request({
        url: '/chengjitianjia',
        method: 'put',
        data: params,
    })
};
// delete
export const chengjitianjiaDelete = (id) => {
    return request({
        url: '/chengjitianjia/'+id,
        method: 'delete',
    })
};
// pldel
export const chengjitianjiaDeleteList = (chengjitianjias) => {
    return request({
        url: '/chengjitianjia/deleteList',
        data:{list:chengjitianjias},
        method: 'post',
    })
};
// all
export const chengjitianjiaAllList = () => {
    return request({
        url: '/chengjitianjia',
        method: 'get',
    })
};

